mirror of
https://github.com/RoboSats/robosats.git
synced 2025-08-10 14:00:27 +00:00
Fix map bug
This commit is contained in:
@ -17,8 +17,8 @@ import Map from '../Map';
|
|||||||
interface Props {
|
interface Props {
|
||||||
open: boolean;
|
open: boolean;
|
||||||
orderType: number;
|
orderType: number;
|
||||||
latitude?: number;
|
latitude?: number | null;
|
||||||
longitude?: number;
|
longitude?: number | null;
|
||||||
onClose?: (position?: [number, number]) => void;
|
onClose?: (position?: [number, number]) => void;
|
||||||
interactive?: boolean;
|
interactive?: boolean;
|
||||||
zoom?: number;
|
zoom?: number;
|
||||||
|
@ -176,12 +176,12 @@ const MakerForm = ({
|
|||||||
const handlePaymentMethodChange = function (paymentArray: string[]): void {
|
const handlePaymentMethodChange = function (paymentArray: string[]): void {
|
||||||
let str = '';
|
let str = '';
|
||||||
const arrayLength = paymentArray.length;
|
const arrayLength = paymentArray.length;
|
||||||
let includeCoordinates = false;
|
let includesCash = false;
|
||||||
|
|
||||||
for (let i = 0; i < arrayLength; i++) {
|
for (let i = 0; i < arrayLength; i++) {
|
||||||
str += paymentArray[i] + ' ';
|
str += paymentArray[i] + ' ';
|
||||||
if (paymentArray[i] === 'cash') {
|
if (paymentArray[i].includes('F2F')) {
|
||||||
includeCoordinates = true;
|
includesCash = true;
|
||||||
if (i === arrayLength - 1) {
|
if (i === arrayLength - 1) {
|
||||||
setOpenWorldmap(true);
|
setOpenWorldmap(true);
|
||||||
}
|
}
|
||||||
@ -195,8 +195,8 @@ const MakerForm = ({
|
|||||||
paymentMethods: paymentArray,
|
paymentMethods: paymentArray,
|
||||||
paymentMethodsText: paymentMethodText,
|
paymentMethodsText: paymentMethodText,
|
||||||
badPaymentMethod: paymentMethodText.length > 50,
|
badPaymentMethod: paymentMethodText.length > 50,
|
||||||
latitude: includeCoordinates ? maker.latitude : null,
|
latitude: includesCash ? maker.latitude : null,
|
||||||
longitude: includeCoordinates ? maker.longitude : null,
|
longitude: includesCash ? maker.longitude : null,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user