Commit 4c40d279 authored by bekzat kapan's avatar bekzat kapan

#7 Поменял местами текста ошибок

parent 377fed63
...@@ -26,7 +26,7 @@ export const encodeMessage = createAsyncThunk( ...@@ -26,7 +26,7 @@ export const encodeMessage = createAsyncThunk(
return response.data.encoded; return response.data.encoded;
} catch (error: any) { } catch (error: any) {
throw new Error( throw new Error(
error.response?.data?.message || 'Error encoding message' error.response?.data?.message || 'Error decoding message'
); );
} }
} }
...@@ -40,7 +40,7 @@ export const decodeMessage = createAsyncThunk( ...@@ -40,7 +40,7 @@ export const decodeMessage = createAsyncThunk(
return response.data.decoded; return response.data.decoded;
} catch (error: any) { } catch (error: any) {
throw new Error( throw new Error(
error.response?.data?.message || 'Error decoding message' error.response?.data?.message || 'Error encoding message'
); );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment