Skip to content

Commit

Permalink
🪲 Fix cancell org join not working
Browse files Browse the repository at this point in the history
Closes #23
  • Loading branch information
DanielSRS committed Feb 24, 2024
1 parent e141bb2 commit f4a30e2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/core/src/machines/organization/newOrgMachine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ type Context = {

export const newOrgMachine = createMachine(
{
/** @xstate-layout N4IgpgJg5mDOIC5QDswHcDyAnKBZAhgMYAWAlqgMQDKAogCoD6AqrQEoDaADALqKgAOAe1ikALqUHI+IAB6IAnADYATADplAVmWdOAdgAsADkNGDAGhABPRAEZ9nRasMO9+pTZu7DAX28XUmDgEJORgqoI4GMh0xGBUohH4MBQQkmGwoviiYQHYeERkqOGR0bHxiTBcvEggQiLiktJyCJ42nKq68gDMnPpd8vrK8sr6FtYIXYZqPXYa8roO+roqvv7oecGFYRFQUTFxCVhJYQBm5BDkuzgpaarkAG6CANY560EFocW7pQcVp+eXPIIB6CQhZCTIKpVaR1MQQpqIZa6VQ9eRaTwaOyDLpjWweVTyQw2DS6XTaJGzVYgXLvEJFHZ7MqHY6qM7IC7IK5QChgLBYCKqfgAGyyJwiAFtVDT8nTtiV9uUjjBWQDOUCQWCGpCeNCarCtQiWp5VBoNIs9DZ5JxLfpRlZEF1lI55G1FroNIpuraNFTpZtPgyfoqWRAwEKwOI1ddUkUQS8pW8ZVsvozfkqwqHw5GucDkI9NRCoTwYcI4Y0as0NF1kYTlCZlMTDPNdDj7QhNPoUT0W5wm5x+op3b7E-76fKmX9VJmI4Drrz+VhBSLRGKsJK-R8x98FczldPs+q86DwZIi9UBKWDRXEFXDKpFBollW60MG3bxj0NKodI60VXOCS8jDoESYBuOaYssggh5AAYoIACu7IUAAwqwNAAIJ0DQDAYKwADiuoXvU8LXkaagPvIlHEg+NhEgMuIICSX4qM4RJEtRXRdMBGybnK24TumUrQTgcGIRAFAAFIYAAkgAcjh+GEbUl4kaAzQAL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JAfF6BMlNGnNsBxnllL16C2k4nYuQkEHFHFDEEoX5GwVNMuFfIKTYKMCMBfEbzD0KW-DNR0i0FJxlkoj8oCqCtEBCtBDgBEE5FHXDCxPsEtGipMCmCmHiq9j3M8UHGMHYkAj2V8CAA */
id: 'newOrgMachine',
predictableActionArguments: true,

Expand Down Expand Up @@ -304,11 +304,16 @@ Neste momento ainda não faço parte da organização, dado que minha entrada ai
onError: 'StoringUpdatedError',
},
},

StoringUpdatedError: {},
orgInfoNotSent: {},
},

initial: 'idle',

on: {
CANCELL_ORG_JOIN: 'Members',
},
},

CommitProcessing: {
Expand Down

0 comments on commit f4a30e2

Please sign in to comment.