Skip to content

Commit

Permalink
fix python brain
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunkLightTuna committed Dec 19, 2023
1 parent c60ba06 commit 88a8bd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/module.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ Hooks.on("createActor", async (actor, data, options, userId) => {
await sync_actor(actor)
})
Hooks.on("updateActor", async (actor, data, options, userId) => {
if ((data?.system || []).includes('currency')) {
let currency = data?.system?.currency
if (currency !== undefined) {
//todo handle currency
}
await sync_actor(actor)
Expand Down

0 comments on commit 88a8bd9

Please sign in to comment.