mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-29 11:26:13 +08:00
only dispatch if its a tribe config
This commit is contained in:
parent
e22fe1d91d
commit
fe3637ba0f
1 changed files with 3 additions and 1 deletions
|
|
@ -196,7 +196,9 @@ export function setConfig<T extends keyof Config>(
|
|||
|
||||
config[key] = value;
|
||||
if (!options?.nosave) saveToLocalStorage(key, options?.nosave);
|
||||
if (!options?.tribeOverride) TribeConfigSyncEvent.dispatch();
|
||||
if (!options?.tribeOverride && metadata.tribeBlocked) {
|
||||
TribeConfigSyncEvent.dispatch();
|
||||
}
|
||||
|
||||
// @ts-expect-error i can't figure this out
|
||||
ConfigEvent.dispatch({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue