diff --git a/js/src/forum/extenders/extendCommentPost.tsx b/js/src/forum/extenders/extendCommentPost.tsx index c7cc9cc..13a3b63 100644 --- a/js/src/forum/extenders/extendCommentPost.tsx +++ b/js/src/forum/extenders/extendCommentPost.tsx @@ -10,7 +10,7 @@ export default function extendCommentPost() { if (app.forum.attribute('fof-geoip.showFlag')) { const ipInfo = this.attrs.post.ip_info?.(); const postUser = this.attrs.post.user(); - if (postUser && postUser.preferences().showIPCountry && ipInfo) { + if (postUser && postUser?.preferences?.().showIPCountry && ipInfo) { const { image } = getIPData(ipInfo); if (image) { items.add('country', image, 100);