mirror of
https://github.com/Hackdex-App/hackdex-website.git
synced 2026-09-07 08:26:07 -05:00
Attempt deviceId workaround
This commit is contained in:
@@ -221,7 +221,8 @@ const HackActions: React.FC<HackActionsProps> = ({
|
||||
deviceId = crypto.randomUUID();
|
||||
localStorage.setItem(key, deviceId);
|
||||
}
|
||||
const result = await updatePatchDownloadCount(patchId, deviceId);
|
||||
const deviceIdObscured = deviceId.split("-");
|
||||
const result = await updatePatchDownloadCount(patchId, deviceIdObscured);
|
||||
if (!result.ok) {
|
||||
console.error(result.error);
|
||||
} else if (result.didIncrease) {
|
||||
|
||||
Reference in New Issue
Block a user