You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/slice-machine/src/features/customTypes/customTypesBuilder/CreateSliceFromImageModal/CreateSliceFromImageModal.tsx
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -140,7 +140,7 @@ export function CreateSliceFromImageModal(
140
140
});
141
141
};
142
142
143
-
constshowFailedDueToUnauthenticatedError=()=>{
143
+
constfailAndPromptLogin=()=>{
144
144
toast.error("Please log in and try again.");
145
145
closeModal();
146
146
openLoginModal();
@@ -189,7 +189,7 @@ export function CreateSliceFromImageModal(
189
189
});
190
190
191
191
if(isUnauthenticatedError(error)){
192
-
showFailedDueToUnauthenticatedError();
192
+
failAndPromptLogin();
193
193
return;
194
194
}
195
195
}
@@ -313,7 +313,7 @@ export function CreateSliceFromImageModal(
0 commit comments