File tree Expand file tree Collapse file tree 5 files changed +9
-3
lines changed Expand file tree Collapse file tree 5 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ export const fetchGrantData =
132
132
alloVersion : config . allo . version ,
133
133
} ) ;
134
134
135
- if ( ! result ?. project ) {
135
+ if ( ! result ?. project || ! result ?. project . metadata . title ) {
136
136
return ;
137
137
}
138
138
Original file line number Diff line number Diff line change @@ -187,7 +187,9 @@ export const loadProjects =
187
187
188
188
if ( projects && withMetaData ) {
189
189
projects . forEach ( ( project ) => {
190
- dispatch < any > ( transformAndDispatchProject ( project . id , project ) ) ;
190
+ if ( project . metadata . title ) {
191
+ dispatch < any > ( transformAndDispatchProject ( project . id , project ) ) ;
192
+ }
191
193
} ) ;
192
194
}
193
195
Original file line number Diff line number Diff line change @@ -330,6 +330,7 @@ export const submitApplication =
330
330
331
331
deterministicApplication = objectToDeterministicJSON ( application as any ) ;
332
332
} catch ( error ) {
333
+ console . error ( "error building round application" , error ) ;
333
334
dispatchAndLogApplicationError (
334
335
dispatch ,
335
336
roundId ,
Original file line number Diff line number Diff line change @@ -2,8 +2,10 @@ import {
2
2
RoundApplicationAnswers ,
3
3
RoundApplicationMetadata ,
4
4
} from "data-layer/dist/roundApplication.types" ;
5
+ import { isLitUnavailable } from "common" ;
5
6
import Lit from "../services/lit" ;
6
7
import { Project , RoundApplication } from "../types" ;
8
+ import { global } from "../global" ;
7
9
8
10
export default class RoundApplicationBuilder {
9
11
enableEncryption : boolean ;
@@ -98,7 +100,7 @@ export default class RoundApplicationBuilder {
98
100
let answer ;
99
101
// eslint-disable-next-line
100
102
let encryptedAnswer ;
101
- if ( question . encrypted ) {
103
+ if ( question . encrypted && ! isLitUnavailable ( global . chainID ! ) ) {
102
104
// eslint-disable-next-line
103
105
encryptedAnswer = await this . encryptAnswer (
104
106
( formInputs [ question . id ] as string ) ?? ""
Original file line number Diff line number Diff line change @@ -483,6 +483,7 @@ export function isLitUnavailable(chainId: number) {
483
483
42 , // LUKSO,
484
484
713715 , // SEI_DEVNET,
485
485
1329 , // SEI_MAINNET,
486
+ 1088 , // METIS
486
487
] . includes ( chainId ) ;
487
488
}
488
489
You can’t perform that action at this time.
0 commit comments