Refactored some of the code

This commit is contained in:
Daniel Cojocea committed 2024-07-04 20:47:23 -04:00
1 parent bef0ad797b
commit 5807990342
7 files changed
+100 -148

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ export const login = createAsyncThunk("auth/login", async (form, thunkApi) => {
export const update = createAsyncThunk(
"auth/update",
async (data, thunkApi) => {
const { authToken: token, toUpdate: form } = data;
const { authToken: token, localData: form } = data;
const user = jwtDecode(token);
try {
//1.5s delay to show loading spinner