fix tournament name being not updatable

also make the saved tourney settings popup disappear faster
This commit is contained in:
Luna 2025-09-27 04:29:59 +02:00
parent ece587b576
commit ca7560d10a
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@
export let iconColor: ColorPreset = 'primary';
export let buttons: ButtonConfig[] = [];
export let customImage: string = '';
export let autoClose: number = 0; // 0 means no auto close
export let autoClose: number = 1500; // 0 means no auto close
// Event dispatcher
const dispatch = createEventDispatcher();

View file

@ -228,7 +228,7 @@
async function saveSettings() {
if(!tournament) return;
if(modifiedObject.name) {
if(tournamentName !== tournament.settings!.tournamentName) {
const setTournamentName = await client.setTournamentName(tournamentGuid, tournamentName);
console.log(setTournamentName)
}