chore: remove unnecessary assertions

This commit is contained in:
Lewis Crichton 2024-06-24 19:01:57 +01:00
parent 2cd94221cd
commit 70cc39b5c6
No known key found for this signature in database

View file

@ -120,9 +120,9 @@ export function t(key: string, variables?: Record<string, any>): string {
}
}
if (!variables) return translation as string;
if (!variables) return translation;
return format(translation as string, variables);
return format(translation, variables);
};
// top level support hax (thank you vee!!)