Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exchange not allowing submission when Schedule has a conflict #339

Open
wants to merge 2 commits into
base: feature/exchange
Choose a base branch
from

Conversation

R0drig0-P
Copy link

@R0drig0-P R0drig0-P commented Nov 10, 2024

Closes #335

Makes the button disabled when Schedule has a severe conflict.

Copy link

netlify bot commented Nov 10, 2024

Deploy Preview for tts-fe-preview failed.

Name Link
🔨 Latest commit d3c01fa
🔍 Latest deploy log https://app.netlify.com/sites/tts-fe-preview/deploys/6730d4f629aec400085c77cd

@tomaspalma tomaspalma changed the base branch from develop to feature/exchange November 10, 2024 15:53
import { Context, Dispatch, createContext, SetStateAction } from "react";

interface ConflictsContextType {
conflictsSeverity: boolean;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although in the CombinedProvider you are passing a number as the severity, here on the context you are still saying that this will be a boolean.

You need to change the type of the variable in the interface and in the createContext call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exchange - When Schedule has a conflict, the frontend should not allow submitting exchange
2 participants