From b115fcfcad6c2798cffad9a166c4886cfe1eed6f Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Sun, 13 Mar 2022 21:20:55 +0100 Subject: [PATCH] add default avatar --- public/default-avatar.png | Bin 0 -> 2420 bytes resources/js/helpers/User.js | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 public/default-avatar.png diff --git a/public/default-avatar.png b/public/default-avatar.png new file mode 100644 index 0000000000000000000000000000000000000000..db3ddd87f6ff6da56c503933d5db2ebd4e20e144 GIT binary patch literal 2420 zcmb7_dpOe#8^?b$p{yEDF<}u0g$|($UnscFu#3Q1bX+|Wo$V+n8mQ!Vn95SbR z9HOX}!sARu7*os`IiF^)=dbtQ=l$b*-`DlMult|-{$AJTfup_U{(VRG0RXTcXJvMN zw^RO+gvf5S^;pdX08nfI7VC(^Vi7?^f?vQ*UjR@`i%c`LdT*@2y5dxruYMpDdh3%T zt0lTPzQDOkLdM#i?joLH^EMBMO`n)htCLaKc735=r^}mRqa~u15XtuT2^!}ogz2Ua zVF#19e(^^+d_}}*wC$PKs(?#PqO*ajUvSx0WuORLX0kc9^yf^BtvpV&WGt?=r+e;zb?H8(pab+bZcaA(vVFQhu!Txh9x2~c63Kzv}-zt z*xan%{rczX;7}_UoJwcX2$UGC*GsE!Jor4HJ3BY_NBIsJ@Q)=HRHk@5-TlknAS<_E z0MJnRN1(7mOz5sDPQuxli~j`gKLk0gscwwgwd6?Vt|Tl0kM|8E0a&81H_7)Z;&uSZ zA7P2JbG&%(fb8ztWt^FbbJ)<_$Tx!f7b$UeR`6QvYoyZ!UrYNrG*dQQeYUQg%`i_W zlIY%f9Lck}r*FkZ1kQY$ZuaZ@jUc-Pp`IeKmfVoF8jwuSXXXD zC-g(#H4TyHQBnq?kY+$Z%nLXG)&k-{Fv@!X((Db0v9$nj5R3xS{kP*rYTDNNXndZv z7nkvw9m_V)WEexbYkDw_d7QWj6`!=yZVPvEL$QHddILxrJiFS>JC#VQ=KitMUln?C z>S#LW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!j zavL9*KO2wu+w4%gXI_8K(D!OG!Tw1Fj%*MgEEpDFNNDNxXBdb7(dVLU8vTWn `//cdn.discordapp.com/avatars/${user.id}/${user.avatar}.png`; +export const getAvatarUrl = user => (user.avatar + ? `//cdn.discordapp.com/avatars/${user.id}/${user.avatar}.png` + : '/default-avatar.png'); export const findResult = (user, round) => { if (!user || !user.id) return null; -- 2.39.2