vbea преди 2 години
родител
ревизия
a7dc0d41b7
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      Strides-APP/app/pages/vouchers/PointsHistory.js

+ 4 - 4
Strides-APP/app/pages/vouchers/PointsHistory.js

@@ -81,15 +81,15 @@ export default class PointsHistory extends Component {
       <View style={styles.itemView}>
         <MaterialCommunityIcons
           style={styles.iconType}
-          name={item.action = "Increase" ? "ev-station" : "ticket-percent-outline"}
+          name={item.action == "Increase" ? "ev-station" : "ticket-percent-outline"}
           size={20}
           color={textPrimary}/>
         <View style={styles.itemContent}>
           <View style={ui.flex1}>
             <TextView style={styles.issueName}>{item.remarks}</TextView>
-            <TextView style={styles.issueDesc}>{item.siteName + ", " + item.chargeBoxId + ", " + item.refId}</TextView>
+            <TextView style={styles.issueDesc}>{(item.siteName ?? item.voucherName) + ", " + (item.chargeBoxId ? item.chargeBoxId + ", " : "") + item.refId}</TextView>
           </View>
-          { item.action = "Increase"
+          { item.action == "Increase"
             ? <TextView style={styles.amountText}>+ {item.points}</TextView>
             : <TextView style={styles.amountDuct}>- {item.points}</TextView>
           }
@@ -167,7 +167,7 @@ const styles = StyleSheet.create({
     width: 28,
     height: 28,
     textAlign: 'center',
-    lineHeight: 26,
+    lineHeight: 27,
     borderWidth: 1,
     borderRadius: 30,
     borderColor: textPrimary