Subversion Repositories SmartDukaan

Rev

Rev 35067 | Rev 35192 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35067 Rev 35098
Line 88... Line 88...
88
    });
88
    });
89
 
89
 
90
});
90
});
91
 
91
 
92
class InsuranceElement extends React.Component {
92
class InsuranceElement extends React.Component {
-
 
93
 
93
    planChecked;
94
    planChecked;
94
 
95
 
95
    constructor(props) {
96
    constructor(props) {
96
        super(props);
97
        super(props);
97
        this.state = {
98
        this.state = {
Line 119... Line 120...
119
                    const displayPremium = isQuoted ? quoted.premium : (plan.premium || 0);
120
                    const displayPremium = isQuoted ? quoted.premium : (plan.premium || 0);
120
                    const displayDP = isQuoted ? quoted.dp : (plan.dp || 0);
121
                    const displayDP = isQuoted ? quoted.dp : (plan.dp || 0);
121
 
122
 
122
                    return (
123
                    return (
123
                        <tr key={`${i}-${j}`}>
124
                        <tr key={`${i}-${j}`}>
-
 
125
                            <td>
-
 
126
                                {plan.providerId == 6 ? (
-
 
127
                                    <img
-
 
128
                                        src="/resources/images/ProtectPlusLogo2.jpg"
-
 
129
                                        style={{height: "70px", marginLeft: "5px"}}
-
 
130
                                    />
-
 
131
                                ) : (
124
                            <td>{planName}</td>
132
                                    planName
-
 
133
                                )}
-
 
134
 
-
 
135
                            </td>
-
 
136
 
125
                            <td>{plan.duration}</td>
137
                            <td>{plan.duration}</td>
126
                            <td>{displayDP ? displayDP.toFixed(2) : "-"}</td>
138
                            <td>{displayDP ? displayDP.toFixed(2) : "-"}</td>
127
                            <td>{displayPremium ? displayPremium.toFixed(2) : "-"}</td>
139
                            <td>{displayPremium ? displayPremium.toFixed(2) : "-"}</td>
128
 
140
 
129
                            <td>
141
                            <td>