We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2499a6 commit 30b2a35Copy full SHA for 30b2a35
1 file changed
u/inventory.js
@@ -1,5 +1,5 @@
1
async function initInventory(fr) {
2
- const { data, error } = await supabase.from("udata").select("inventory").eq("user_id", fr.user.id).single();
+ const { data, error } = await supabase.from("udata").select("inventory").eq("user_id", fr.id).single();
3
if (!data || error) document.getElementById("infotext").innerHTML = "Something went wrong.";
4
else document.getElementById("infotext").innerHTML = "Your inventory is empty.";
5
}
0 commit comments