♻ Refactor Deposit and Register

🏷 Pick a part query types to simplify typing and fix
incompatible types
This commit is contained in:
Nikolai R Kristiansen committed 2022-02-14 10:19:34 +01:00
1 parent 8b0aaa287e
commit aa66694fd5
7 files changed
+197 -146

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ export const UserList = () => {
if (loading) return <div>Loading...</div>;
const allUsers = data?.allUsers || [];
const users = showAll ? allUsers : allUsers.filter(activeUserFilter);
const users = showAll ? allUsers : allUsers.filter((u) => activeUserFilter(u));
return (
<div>
<button type="button" className="btn btn-link" onClick={() => setShowAll(!showAll)}>