@@ -84,21 +84,21 @@ export const getVrm1LicenseValue = (vrm1Meta: VRM1Meta, property: vrm1MetaProper
8484 //「 個人の商用利用」は法人利用とプロパティが共用のため、commercialUsageの値を参照し判定する
8585 if ( property === 'personalCommercialUse' ) {
8686 const status = vrm1Meta . commercialUsage ;
87- if ( typeof status === 'undefined' ) return '未設定' ;
87+ if ( status == null ) return '未設定' ;
8888
8989 return status === 'corporation' || status === 'personalProfit' ? 'OK' : 'NG' ;
9090 }
9191
9292 // 「改変物の再配布」は改変とプロパティが共用のため、modificationの値を参照し判定する
9393 if ( property === 'modificationRedistribution' ) {
9494 const status = vrm1Meta . modification ;
95- if ( typeof status === 'undefined' ) return '未設定' ;
95+ if ( status == null ) return '未設定' ;
9696
9797 return status === 'allowModificationRedistribution' ? 'OK' : 'NG' ;
9898 }
9999
100100 const status = vrm1Meta [ property ] ;
101- if ( typeof status === 'undefined' ) return '未設定' ;
101+ if ( status == null ) return '未設定' ;
102102
103103 switch ( property ) {
104104 case 'avatarPermission' :
@@ -134,21 +134,21 @@ export const getVrm1LicenseVariant = (vrm1Meta: VRM1Meta, property: vrm1MetaProp
134134 //「 個人の商用利用」は法人利用とプロパティが共用のため、commercialUsageの値を参照し判定する
135135 if ( property === 'personalCommercialUse' ) {
136136 const status = vrm1Meta . commercialUsage ;
137- if ( typeof status === 'undefined' ) return 'default' ;
137+ if ( status == null ) return 'default' ;
138138
139139 return status === 'corporation' || status === 'personalProfit' ? 'allow' : 'default' ;
140140 }
141141
142142 // 「改変物の再配布」は改変とプロパティが共用のため、modificationの値を参照し判定する
143143 if ( property === 'modificationRedistribution' ) {
144144 const status = vrm1Meta . modification ;
145- if ( typeof status === 'undefined' ) return 'default' ;
145+ if ( status == null ) return 'default' ;
146146
147147 return status === 'allowModificationRedistribution' ? 'allow' : 'default' ;
148148 }
149149
150150 const status = vrm1Meta [ property ] ;
151- if ( typeof status === 'undefined' ) return 'default' ;
151+ if ( status == null ) return 'default' ;
152152
153153 switch ( property ) {
154154 case 'avatarPermission' :
0 commit comments