Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Global/Modal/useModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const useModal = (
// TODO: 'closeModalEvent' is a magic value (must be defined in multiple files)
// TODO: ... we should rework things such that it only needs to be defined once

// click handlers to to open and close the modal
// click handlers to open and close the modal
const openModal = useCallback((): void => setIsModalOpen(true), []);
const closeModal = useCallback((): void => {
// close the modal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export default function TradeConfirmationSkeleton(props: propsIF) {
action={() => {
// if this modal is launched we can infer user wants confirmation
// if user enables bypass, update all settings in parallel
// otherwise do not not make any change to persisted preferences
// otherwise do not make any change to persisted preferences
if (skipFutureConfirmation) {
bypassConfirmSwap.enable();
bypassConfirmLimit.enable();
Expand Down
2 changes: 1 addition & 1 deletion src/pages/platformAmbient/Trade/Reposition/Reposition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ function Reposition() {
};

// if chart is at ambient width, keep ambient width, otherwise use the default
// otherwise the the width rapidly switches back and forth between the two when returning to an in progress reposition
// otherwise the width rapidly switches back and forth between the two when returning to an in progress reposition
const [rangeWidthPercentage, setRangeWidthPercentage] = useState(
simpleRangeWidth === 100 || !position
? 100
Expand Down