Skip to content

Commit

Permalink
te
Browse files Browse the repository at this point in the history
  • Loading branch information
YoctoProductions committed Feb 14, 2025
1 parent 0ee586f commit 5827229
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions api/src/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ export class AuthService {
async changeUsername(account: Account, newUsername: string) {
try {
let result = await this.accountsService.changeUsername(account.id, newUsername);
if(result.success) {
(result as any).secret = account.secret;
}
return result;
} catch (e) {
console.log(e);
Expand Down
1 change: 0 additions & 1 deletion client/src/redux/account/slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ export const changeClanAsync = createAsyncThunk(
alert('Clan changed successfully');
// Dispatching actions to update name and token in the state
dispatch(setClan(newClan));
dispatch(setSecret(response.secret));
}
} catch (error) {
// Handle any other errors, such as network issues
Expand Down
1 change: 1 addition & 0 deletions client/src/ui/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ function App() {

const onStart = () => {
console.log('Starting game');
console.log(account.clan);
if(!isConnected) {
alert('Not connected yet');
return;
Expand Down

0 comments on commit 5827229

Please sign in to comment.