mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-04 23:27:47 +00:00
unset pattern on logout (#1873)
## Description: During logout, the pattern was still set, so you would fail to join any game. This PR clears & unsets the chosen pattern on logout. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: evan
This commit is contained in:
committed by
Scott Anderson
parent
087159ae31
commit
783a68e359
@@ -66,6 +66,10 @@ export class TerritoryPatternsModal extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async onUserMe(userMeResponse: UserMeResponse | null) {
|
async onUserMe(userMeResponse: UserMeResponse | null) {
|
||||||
|
if (userMeResponse === null) {
|
||||||
|
this.userSettings.setSelectedPatternName(undefined);
|
||||||
|
this.selectedPattern = undefined;
|
||||||
|
}
|
||||||
this.patterns = await patterns(userMeResponse);
|
this.patterns = await patterns(userMeResponse);
|
||||||
this.me = userMeResponse;
|
this.me = userMeResponse;
|
||||||
this.requestUpdate();
|
this.requestUpdate();
|
||||||
|
|||||||
Reference in New Issue
Block a user