diff --git a/src/miscRequests.js b/src/miscRequests.js index 77e17cb..b1af288 100644 --- a/src/miscRequests.js +++ b/src/miscRequests.js @@ -412,8 +412,8 @@ module.exports = { following: parseFloat(/,"following":([0-9]*?),/.exec(data)?.[1] || 0), followers: parseFloat(/,"followers":([0-9]*?),/.exec(data)?.[1] || 0), notifications: { - following: parseFloat(/"notification_count":\{"following":([0-9]*),/.exec(data)?.[1] || 0), - user: parseFloat(/"notification_count":\{"following":[0-9]*,"user":([0-9]*)/.exec(data)?.[1] || 0), + following: parseFloat(/"notification_count":\{"following":([0-9]*),/.exec(data)?.[1] ?? 0), + user: parseFloat(/"notification_count":\{"following":[0-9]*,"user":([0-9]*)/.exec(data)?.[1] ?? 0), }, session, signature,