Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 9850aee

Browse files
committed
chore: clean up & edge case gq error handle
1 parent 307799c commit 9850aee

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

components/BuyMeChuanChuan/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ const log = buildLog('c:Footer:index')
3737
const BuyMeChuanChuan = ({ show, accountInfo, onClose, onLogin, onPay }) => {
3838
const [activeChuan, setActiveChuan] = useState(1)
3939

40-
log('fromUser: ', accountInfo)
4140
return (
4241
<Modal width="700px" show={show} showCloseBtn onClose={onClose}>
4342
<Wrapper>

utils/async/handler.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ export const TimoutObservable = of({
2121
// refator later
2222
const formatDetail = errors => {
2323
const details = []
24+
// NOTE: eadge case, fix latter
25+
if (!errors) return {}
26+
2427
errors.map(({ message, path, key, code }) => {
2528
if (Array.isArray(message)) {
2629
return message.map(msg => {

0 commit comments

Comments
 (0)