How to fix createAsyncThunk requires a string action type and a payloadCreator function in React | DevErrors