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:
evanpelle
2025-08-19 14:35:30 -07:00
committed by Scott Anderson
parent 087159ae31
commit 783a68e359
+4
View File
@@ -66,6 +66,10 @@ export class TerritoryPatternsModal extends LitElement {
}
async onUserMe(userMeResponse: UserMeResponse | null) {
if (userMeResponse === null) {
this.userSettings.setSelectedPatternName(undefined);
this.selectedPattern = undefined;
}
this.patterns = await patterns(userMeResponse);
this.me = userMeResponse;
this.requestUpdate();