Skip to content

Commit a8d12b3

Browse files
committed
refactor: rename
1 parent e81e0bf commit a8d12b3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/slice-machine/src/features/customTypes/customTypesBuilder/CreateSliceFromImageModal/CreateSliceFromImageModal.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export function CreateSliceFromImageModal(
140140
});
141141
};
142142

143-
const showFailedDueToUnauthenticatedError = () => {
143+
const failAndPromptLogin = () => {
144144
toast.error("Please log in and try again.");
145145
closeModal();
146146
openLoginModal();
@@ -189,7 +189,7 @@ export function CreateSliceFromImageModal(
189189
});
190190

191191
if (isUnauthenticatedError(error)) {
192-
showFailedDueToUnauthenticatedError();
192+
failAndPromptLogin();
193193
return;
194194
}
195195
}
@@ -313,7 +313,7 @@ export function CreateSliceFromImageModal(
313313
});
314314

315315
if (isUnauthenticatedError(error)) {
316-
showFailedDueToUnauthenticatedError();
316+
failAndPromptLogin();
317317
return;
318318
}
319319

0 commit comments

Comments
 (0)