diff options
| author | Ben Beltran <ben@nsovocal.com> | 2020-02-15 23:03:37 +0100 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2020-02-15 23:03:37 +0100 |
| commit | 41247723b2940efe89648749b90e56d582bdfb89 (patch) | |
| tree | 0fd6b070290b55444ab30b60892a61fdf1dc228b /app/stores/forums.js | |
| parent | 24be7b5399ae4162702ad9a1f17b5711922a2da4 (diff) | |
Fix linter and linteer warnings
Diffstat (limited to 'app/stores/forums.js')
| -rw-r--r-- | app/stores/forums.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/stores/forums.js b/app/stores/forums.js index adc8758..c473124 100644 --- a/app/stores/forums.js +++ b/app/stores/forums.js @@ -72,10 +72,11 @@ internals.forums = [ export const forums = writable(internals.forums); -export function addForum() { +export const addForum = function addForum() { + const id = Math.random(); - forums.update((forums) => ([...forums, + forums.update((originalForums) => ([...originalForums, { id, glyph: 'の', |